PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-05-07 10:20:53.485803+00:00 (UTC)
In US/Central Time, this is 2024-05-07 05:20:53.485803-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/95e03d99404a255c870ef60c31366987db218da02fbc87d3fc130648aa9a398c.png
We are just generating a random time serie here.
../_images/dfeb3ee09351e86987cc1f7c9d07e4bf2197c48d92de7ff97cd54c26bf2e624b.png
../_images/933b65cd8acf675bb374e0b1f2a1c0a9a90e4c8fda36b18c4bf8e7cf6e6b1c45.png